# Contributor: Paper <paper@tilde.institute>
# Maintainer: Paper <paper@tilde.institute>
pkgname=confy
pkgver=0.7.0
pkgrel=0
pkgdesc="Conferences schedule viewer for GNOME"
url="https://confy.kirgroup.net/"
license="GPL-3.0-or-later"
# s390x: blueprint-compiler program has crashed
arch="noarch !s390x"
depends="
	gtk4.0
	py3-gobject3
	py3-icalendar
	libadwaita
	libnotify
	"
checkdepends="desktop-file-utils"
makedepends="
	blueprint-compiler
	gettext-dev
	glib-dev
	meson
	"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~fabrixxm/confy/archive/$pkgver.tar.gz"
subpackages="$pkgname-lang $pkgname-pyc"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
af74b906cc6023bc0bad82a9bf653430c3a78f35b0900a876b8ceedf89c487d268c0c37926a22b7f5ea0eb06b3c81acf176817d4a26822bf8f6bc9dc5e305526  confy-0.7.0.tar.gz
"
